<include file="public@storage"/>
<link rel="stylesheet" href="__STATIC__/storage/print/print.css"/>
</head>
<body>
<div>
    <div align="center" style="width: 100% ;">
        <p><a  href="{:url('storage/Tag/materiel')}" style="font-size: 25px;">标签生成</a>  <a href="{:url('storage/Tag/copy')}" style="font-size: 25px;">标签复制</a>  标签打印</p>
        <form class="form-horizontal table" style="padding-left:50px;padding-right: 50px" action="">
            <div class="panel panel-primary">
                <div class="panel-heading">
                    <h3 align="left" class="panel-title">标签打印</h3>
                </div>
                <div class="panel-body" style="padding-top:30px;">
                    <div style="float: left;margin-left: 25%;margin-top: 2%">
                        <div class="form-group">
                            <label class="col-md-2 control-label">条&nbsp;码：</label>
                            <div class="col-md-10">
                                <input type="text" name="reel" id="reel" class="form-control" placeholder="请输入17位条码" onchange="newId()">
                            </div>
                        </div>
                        <input type="hidden" id="supplierId">
                        <br/>
                        <div class="form-group">
                            <label class="col-md-2 control-label">数&nbsp;量：</label>
                            <div class="col-md-10">
                                <input type="text" name="num" id="num" class="form-control" placeholder="请输入数量">
                            </div>
                        </div>
                        <br/>
                    </div>
                    <div class="preview" id="preview" style='float:left;margin-left:200px;'>
                        <table id="printContent" style="font-size:5px;;width: 80mm;height: 50mm;word-wrap: break-word;word-break: break-all;margin: 0">
                            <tr>
                                <td id="img" style="text-align: center;"></td>
                            </tr>
                            <tr>
                                <td>物&nbsp;料&nbsp;号:<span id="sub_materiel_id"></span>
                                <td>
                            </tr>
                            <tr>
                                <td style="width: 60mm">物料名称:<span id="sub_materiel_name"></span></td>
                            </tr>
                            <tr>
                                <td style="width: 60mm">规格型号:<span id="format"></span></td>
                            </tr>
                            <tr>
                                <td style="width: 60mm">厂商:<span id="company_name"></span></td>
                            </tr>
                            <tr>
                                <td>检验日期:<span id="date"></span><span style="margin-left: 5mm">数&nbsp;量:<span id="count"></span></span>
                                </td>
                            </tr>
                            <tr>
                                <td>检验结果:<span id="result"></span><span style="margin-left: 20mm">检验员:<span
                                        id="checker"></span></span>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
            </div>
            <div style="text-align: center;margin: 10px;">
                <button type="submit" class="mui-btn mui-btn--raised mui-btn--primary"  onclick="createPage(1)">确认打印</button>
            </div>
        </form>
    </div>
</div>
</body>
<script src="__STATIC__/storage/barcode/Barcode.js"></script>
<script src="__STATIC__/storage/print/printThis.js"></script>
<script src="__STATIC__/storage/print/print.js"></script>
<script>
    var newId = function () {
        var url = "{:url('storage/Tag/getReelInfo')}";
        var data = {reel:$('#reel').val(),copy:false};
        createId(url,data);
    }
</script>
</html>